﻿namespace YunQue.WebApi.Controllers
{
    /// <summary>
    /// api基类
    /// </summary>
    [Route("api/[controller]")]
    [ApiController]
    [Authorize]
    public class BaseController : ControllerBase
    {
        /// <summary>
        /// 用户上下文
        /// </summary>
        public UserContext _userContext
        {
            get
            {
                return (UserContext)HttpContext.RequestServices.GetService(typeof(UserContext));
            }
        }
        
    }
}
